var app = new Vue({
	el: '#app',
	data: {
		type: 1,
		date: 1
	},
	methods: {
		typepaven: function() {
			this.type--;
			if (this.type < 1) {
				this.type = 3;
			}
		},

		typeone: function() {
			this.type++;
			if (this.type > 3) {
				this.type = 1;
			}
		},
		// 小熊区域切换
		datef: function() {
			this.date--;
			if (this.date < 1) {
				this.date = 3;
			}
		},

		datet: function() {
			this.date++;
			if (this.date > 3) {
				this.date = 1;
			}
		}
	},
	mounted: function() {
		var _this = this;
		setInterval(function() {
			_this.type++;
			if (_this.type > 3) {
				_this.type = 1;
			}
		}, 3000)
		
		setInterval(function() {
			_this.date++;
			if (_this.date > 3) {
				_this.date = 1;
			}
		}, 3000)
	}
})
